import hashlib
import uuid as uid


def uuid():
    return uid.uuid1().__str__()


def md5(string):
    hl = hashlib.md5()
    hl.update(string.encode(encoding='utf-8'))
    return hl.hexdigest()


def token():
    u1 = uuid()
    u2 = uuid()
    return (md5(u1 + u2) + md5(u2))[:50]
